-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(platform): added pagination & loading state for variables page #787
base: develop
Are you sure you want to change the base?
feat(platform): added pagination & loading state for variables page #787
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
can you refer to this? the implementation and the comments. |
User description
Description
hasMore
flag which prevents unnecessary API calls when no more data is available.Fixes #706
Dependencies
N/A
Future Improvements
N/A
Mentions
@rajdip-b
Screenshots of relevant screens
https://www.loom.com/share/c4547494833648858cb80c78b214c784
Developer's checklist
If changes are made in the code:
PR Type
Enhancement
Description
Added dynamic pagination to the variables page.
Implemented a "Load More" button for additional variables.
Introduced a loading state and error handling for fetching variables.
Added a skeleton loader component for improved user experience.
Changes walkthrough 📝
page.tsx
Added pagination and loading state to variables page
apps/platform/src/app/(main)/(project)/[workspace]/[project]/@variable/page.tsx
page
andhasMore
states.index.tsx
Added skeleton loader for variables page
apps/platform/src/components/dashboard/variable/variableLoader/index.tsx